var swfobject = function () {
        function c() {
            if (!F) {
                try {
                    var d = g.getElementsByTagName("body")[0].appendChild(g.createElement("span"));
                    d.parentNode.removeChild(d)
                } catch (f) {
                    return
                }
                F = !0;
                for (var d = J.length, j = 0; j < d; j++) J[j]()
            }
        }

        function e(d) {
            F ? d() : J[J.length] = d
        }

        function A(d) {
            if (typeof s.addEventListener != n) s.addEventListener("load", d, !1);
            else if (typeof g.addEventListener != n) g.addEventListener("load", d, !1);
            else if (typeof s.attachEvent != n) ca(s, "onload", d);
            else if ("function" == typeof s.onload) {
                var f = s.onload;
                s.onload = function () {
                    f();
                    d()
                }
            } else s.onload = d
        }

        function u() {
            var d = g.getElementsByTagName("body")[0],
                f = g.createElement(B);
            f.setAttribute("type", K);
            var j = d.appendChild(f);
            if (j) {
                var c = 0;
                (function () {
                    if (typeof j.GetVariable != n) {
                        var l = j.GetVariable("$version");
                        if (l) l = l.split(" ")[1].split(","), i.pv = [parseInt(l[0], 10), parseInt(l[1], 10), parseInt(l[2], 10)]
                    } else if (10 > c) {
                        c++;
                        setTimeout(arguments.callee, 10);
                        return
                    }
                    d.removeChild(f);
                    j = null;
                    v()
                })()
            } else v()
        }

        function v() {
            var d = D.length;
            if (0 < d) for (var f = 0; f < d; f++) {
                var j = D[f].id,
                    c = D[f].callbackFn,
                    l = {
                        success: !1,
                        id: j
                    };
                if (0 < i.pv[0]) {
                    var g = x(j);
                    if (g) if (L(D[f].swfVersion) && !(i.wk && 312 > i.wk)) {
                        if (G(j, !0), c) l.success = !0, l.ref = r(j), c(l)
                    } else if (D[f].expressInstall && Q()) {
                        l = {};
                        l.data = D[f].expressInstall;
                        l.width = g.getAttribute("width") || "0";
                        l.height = g.getAttribute("height") || "0";
                        if (g.getAttribute("class")) l.styleclass = g.getAttribute("class");
                        if (g.getAttribute("align")) l.align = g.getAttribute("align");
                        for (var m = {}, g = g.getElementsByTagName("param"), e = g.length, p = 0; p < e; p++)"movie" != g[p].getAttribute("name").toLowerCase() && (m[g[p].getAttribute("name")] = g[p].getAttribute("value"));
                        R(l, m, j, c)
                    } else da(g), c && c(l)
                } else if (G(j, !0), c) {
                    if ((j = r(j)) && typeof j.SetVariable != n) l.success = !0, l.ref = j;
                    c(l)
                }
            }
        }

        function r(d) {
            var f = null;
            if ((d = x(d)) && "OBJECT" == d.nodeName) typeof d.SetVariable != n ? f = d : (d = d.getElementsByTagName(B)[0]) && (f = d);
            return f
        }

        function Q() {
            return !N && L("6.0.65") && (i.win || i.mac) && !(i.wk && 312 > i.wk)
        }

        function R(d, f, j, c) {
            N = !0;
            S = c || null;
            W = {
                success: !1,
                id: j
            };
            var l = x(j);
            if (l) {
                "OBJECT" == l.nodeName ? (I = T(l), O = null) : (I = l, O = j);
                d.id = X;
                if (typeof d.width == n || !/%$/.test(d.width) && 310 > parseInt(d.width, 10)) d.width = "310";
                if (typeof d.height == n || !/%$/.test(d.height) && 137 > parseInt(d.height, 10)) d.height = "137";
                g.title = g.title.slice(0, 47) + " - Flash Player Installation";
                c = i.ie && i.win ? "ActiveX" : "PlugIn";
                c = "MMredirectURL=" + s.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + c + "&MMdoctitle=" + g.title;
                f.flashvars = typeof f.flashvars != n ? f.flashvars + ("&" + c) : c;
                if (i.ie && i.win && 4 != l.readyState) c = g.createElement("div"), j += "SWFObjectNew", c.setAttribute("id", j), l.parentNode.insertBefore(c, l), l.style.display = "none", function () {
                    4 == l.readyState ? l.parentNode.removeChild(l) : setTimeout(arguments.callee, 10)
                }();
                U(d, f, j)
            }
        }

        function da(d) {
            if (i.ie && i.win && 4 != d.readyState) {
                var f = g.createElement("div");
                d.parentNode.insertBefore(f, d);
                f.parentNode.replaceChild(T(d), f);
                d.style.display = "none";
                (function () {
                    4 == d.readyState ? d.parentNode.removeChild(d) : setTimeout(arguments.callee, 10)
                })()
            } else d.parentNode.replaceChild(T(d), d)
        }

        function T(d) {
            var f = g.createElement("div");
            if (i.win && i.ie) f.innerHTML = d.innerHTML;
            else if (d = d.getElementsByTagName(B)[0]) if (d = d.childNodes) for (var c = d.length, y = 0; y < c; y++)!(1 == d[y].nodeType && "PARAM" == d[y].nodeName) && 8 != d[y].nodeType && f.appendChild(d[y].cloneNode(!0));
            return f
        }

        function U(d, f, c) {
            var y, l = x(c);
            if (i.wk && 312 > i.wk) return y;
            if (l) {
                if (typeof d.id == n) d.id = c;
                if (i.ie && i.win) {
                    var e = "",
                        m;
                    for (m in d) if (d[m] != Object.prototype[m])"data" == m.toLowerCase() ? f.movie = d[m] : "styleclass" == m.toLowerCase() ? e += ' class="' + d[m] + '"' : "classid" != m.toLowerCase() && (e += " " + m + '="' + d[m] + '"');
                    m = "";
                    for (var q in f) f[q] != Object.prototype[q] && (m += '<param name="' + q + '" value="' + f[q] + '" />');
                    l.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + e + ">" + m + "</object>";
                    P[P.length] = d.id;
                    y = x(d.id)
                } else {
                    q = g.createElement(B);
                    q.setAttribute("type", K);
                    for (var p in d) d[p] != Object.prototype[p] && ("styleclass" == p.toLowerCase() ? q.setAttribute("class", d[p]) : "classid" != p.toLowerCase() && q.setAttribute(p, d[p]));
                    for (e in f) f[e] != Object.prototype[e] && "movie" != e.toLowerCase() && (d = q, m = e, p = f[e], c = g.createElement("param"), c.setAttribute("name", m), c.setAttribute("value", p), d.appendChild(c));
                    l.parentNode.replaceChild(q, l);
                    y = q
                }
            }
            return y
        }

        function Y(d) {
            var f = x(d);
            if (f && "OBJECT" == f.nodeName) i.ie && i.win ? (f.style.display = "none", function () {
                if (4 == f.readyState) {
                    var c = x(d);
                    if (c) {
                        for (var g in c)"function" == typeof c[g] && (c[g] = null);
                        c.parentNode.removeChild(c)
                    }
                } else setTimeout(arguments.callee, 10)
            }()) : f.parentNode.removeChild(f)
        }

        function x(d) {
            var f = null;
            try {
                f = g.getElementById(d)
            } catch (c) {}
            return f
        }

        function ca(d, f, c) {
            d.attachEvent(f, c);
            H[H.length] = [d, f, c]
        }

        function L(d) {
            var c = i.pv,
                d = d.split(".");
            d[0] = parseInt(d[0], 10);
            d[1] = parseInt(d[1], 10) || 0;
            d[2] = parseInt(d[2], 10) || 0;
            return c[0] > d[0] || c[0] == d[0] && c[1] > d[1] || c[0] == d[0] && c[1] == d[1] && c[2] >= d[2] ? !0 : !1
        }

        function Z(d, c, j, e) {
            if (!i.ie || !i.mac) {
                var l = g.getElementsByTagName("head")[0];
                if (l) {
                    j = j && "string" == typeof j ? j : "screen";
                    e && (V = C = null);
                    if (!C || V != j) e = g.createElement("style"), e.setAttribute("type", "text/css"), e.setAttribute("media", j), C = l.appendChild(e), i.ie && i.win && typeof g.styleSheets != n && 0 < g.styleSheets.length && (C = g.styleSheets[g.styleSheets.length - 1]), V = j;
                    i.ie && i.win ? C && typeof C.addRule == B && C.addRule(d, c) : C && typeof g.createTextNode != n && C.appendChild(g.createTextNode(d + " {" + c + "}"))
                }
            }
        }

        function G(d, c) {
            if ($) {
                var j = c ? "visible" : "hidden";
                F && x(d) ? x(d).style.visibility = j : Z("#" + d, "visibility:" + j)
            }
        }

        function aa(d) {
            return null != /[\\\"<>\.;]/.exec(d) && typeof encodeURIComponent != n ? encodeURIComponent(d) : d
        }
        var n = "undefined",
            B = "object",
            K = "application/x-shockwave-flash",
            X = "SWFObjectExprInst",
            s = window,
            g = document,
            E = navigator,
            ba = !1,
            J = [function () {
                ba ? u() : v()
            }],
            D = [],
            P = [],
            H = [],
            I, O, S, W, F = !1,
            N = !1,
            C, V, $ = !0,
            i = function () {
                var d = typeof g.getElementById != n && typeof g.getElementsByTagName != n && typeof g.createElement != n,
                    c = E.userAgent.toLowerCase(),
                    j = E.platform.toLowerCase(),
                    e = j ? /win/.test(j) : /win/.test(c),
                    j = j ? /mac/.test(j) : /mac/.test(c),
                    c = /webkit/.test(c) ? parseFloat(c.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : !1,
                    l = !+"\u000b1",
                    i = [0, 0, 0],
                    m = null;
                if (typeof E.plugins != n && typeof E.plugins["Shockwave Flash"] == B) {
                    if ((m = E.plugins["Shockwave Flash"].description) && !(typeof E.mimeTypes != n && E.mimeTypes[K] && !E.mimeTypes[K].enabledPlugin)) ba = !0, l = !1, m = m.replace(/^.*\s+(\S+\s+\S+$)/, "$1"), i[0] = parseInt(m.replace(/^(.*)\..*$/, "$1"), 10), i[1] = parseInt(m.replace(/^.*\.(.*)\s.*$/, "$1"), 10), i[2] = /[a-zA-Z]/.test(m) ? parseInt(m.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0
                } else if (typeof s.ActiveXObject != n) try {
                    var q = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
                    if (q && (m = q.GetVariable("$version"))) l = !0, m = m.split(" ")[1].split(","), i = [parseInt(m[0], 10), parseInt(m[1], 10), parseInt(m[2], 10)]
                } catch (p) {}
                return {
                    w3: d,
                    pv: i,
                    wk: c,
                    ie: l,
                    win: e,
                    mac: j
                }
            }();
        (function () {
            i.w3 && ((typeof g.readyState != n && "complete" == g.readyState || typeof g.readyState == n && (g.getElementsByTagName("body")[0] || g.body)) && c(), F || (typeof g.addEventListener != n && g.addEventListener("DOMContentLoaded", c, !1), i.ie && i.win && (g.attachEvent("onreadystatechange", function () {
                "complete" == g.readyState && (g.detachEvent("onreadystatechange", arguments.callee), c())
            }), s == top &&
            function () {
                if (!F) {
                    try {
                        g.documentElement.doScroll("left")
                    } catch (d) {
                        setTimeout(arguments.callee, 0);
                        return
                    }
                    c()
                }
            }()), i.wk &&
            function () {
                F || (/loaded|complete/.test(g.readyState) ? c() : setTimeout(arguments.callee, 0))
            }(), A(c)))
        })();
        (function () {
            i.ie && i.win && window.attachEvent("onunload", function () {
                for (var d = H.length, c = 0; c < d; c++) H[c][0].detachEvent(H[c][1], H[c][2]);
                d = P.length;
                for (c = 0; c < d; c++) Y(P[c]);
                for (var j in i) i[j] = null;
                i = null;
                for (var g in swfobject) swfobject[g] = null;
                swfobject = null
            })
        })();
        return {
            registerObject: function (d, c, j, g) {
                if (i.w3 && d && c) {
                    var e = {};
                    e.id = d;
                    e.swfVersion = c;
                    e.expressInstall = j;
                    e.callbackFn = g;
                    D[D.length] = e;
                    G(d, !1)
                } else g && g({
                    success: !1,
                    id: d
                })
            },
            getObjectById: function (c) {
                if (i.w3) return r(c)
            },
            embedSWF: function (c, f, j, g, l, u, m, q, p, s) {
                var r = {
                    success: !1,
                    id: f
                };
                i.w3 && !(i.wk && 312 > i.wk) && c && f && j && g && l ? (G(f, !1), e(function () {
                    j += "";
                    g += "";
                    var e = {};
                    if (p && typeof p === B) for (var i in p) e[i] = p[i];
                    e.data = c;
                    e.width = j;
                    e.height = g;
                    i = {};
                    if (q && typeof q === B) for (var v in q) i[v] = q[v];
                    if (m && typeof m === B) for (var x in m) i.flashvars = typeof i.flashvars != n ? i.flashvars + ("&" + x + "=" + m[x]) : x + "=" + m[x];
                    if (L(l)) v = U(e, i, f), e.id == f && G(f, !0), r.success = !0, r.ref = v;
                    else {
                        if (u && Q()) {
                            e.data = u;
                            R(e, i, f, s);
                            return
                        }
                        G(f, !0)
                    }
                    s && s(r)
                })) : s && s(r)
            },
            switchOffAutoHideShow: function () {
                $ = !1
            },
            ua: i,
            getFlashPlayerVersion: function () {
                return {
                    major: i.pv[0],
                    minor: i.pv[1],
                    release: i.pv[2]
                }
            },
            hasFlashPlayerVersion: L,
            createSWF: function (c, f, e) {
                if (i.w3) return U(c, f, e)
            },
            showExpressInstall: function (c, f, e, g) {
                i.w3 && Q() && R(c, f, e, g)
            },
            removeSWF: function (c) {
                i.w3 && Y(c)
            },
            createCSS: function (c, f, e, g) {
                i.w3 && Z(c, f, e, g)
            },
            addDomLoadEvent: e,
            addLoadEvent: A,
            getQueryParamValue: function (c) {
                var f = g.location.search || g.location.hash;
                if (f) {
                    /\?/.test(f) && (f = f.split("?")[1]);
                    if (null == c) return aa(f);
                    for (var f = f.split("&"), e = 0; e < f.length; e++) if (f[e].substring(0, f[e].indexOf("=")) == c) return aa(f[e].substring(f[e].indexOf("=") + 1))
                }
                return ""
            },
            expressInstallCallback: function () {
                if (N) {
                    var c = x(X);
                    if (c && I) {
                        c.parentNode.replaceChild(I, c);
                        if (O && (G(O, !0), i.ie && i.win)) I.style.display = "block";
                        S && S(W)
                    }
                    N = !1
                }
            }
        }
    }();
var $_ = function (c) {
        if (document.getElementById) return document.getElementById(c)
    },
    $$_ = function (c, e) {
        return document.getElementById(c).getElementsByTagName(e)
    };
String.prototype.GetPart = function (c) {
    c = this.substr(this.indexOf("#") + 1).match(RegExp("(^|&)" + c + "=([^&]*)(&|$)"));
    return null != c ? unescape(c[2]) : null
};
M = new ANCMedia;

function ANCMedia() {
    w = this.width;
    h = this.height;
    i1 = this.id1;
    i2 = this.id2;
    i3 = this.id3;
    hrf = this.home;
    lgo = this.logo;
    this.r = function () {
        var c = $_(i1).innerHTML,
            c = c.replace(/\[id\]/gi, "<span id='anc_id' style='display: none;'>"),
            c = c.replace(/\[\/id\]/gi, "</span>"),
            c = c.replace(/\<id\>/gi, "<span id='anc_id' style='display: none;'>"),
            c = c.replace(/\<\/id\>/gi, "</span>");
        $_(i1).innerHTML = c;
        z = $_("anc_id").innerHTML; - 1 == z.indexOf("|") && -1 == z.indexOf(";") && (z = "Xem Full;" + z + "|");
        return z
    };
    this.glink = function (c) {
        var e = location.href.GetPart("id");
        void 0 == e && (e = "0,1");
        a = e.split(",")[0];
        b = e.split(",")[1];
        return c.split("|")[a].split(";")[b]
    };
    this.pl = function (c) {
        var e = function (e, r) {
                return c.split("|")[e].split(";")[r]
            },
            A = c.split("|").length;
        l_new = -1 != c.indexOf("|") ? e(0, 1) : c;
        ot = M.ob(l_new);
        if (0 == $$_(i3, "a").length) {
            if (1 < A) for (var u = 0; u < A; u++) {
                k = e(u, 0);
                for (var v = 1; v < c.split("|")[u].split(";").length; v++) if (l_ep = e(u, v), ab = 2 == c.split("|")[u].split(";").length ? "" : ii[v], name_eppart = Number(e(u, 0)) ? e(u, 0) + ii[v] : e(u, 0), "Xem Full" != k) for (var r = 0; r < t.length; r++) - 1 != l_ep.indexOf(sv[r]) && (t[r] = "<span class='anc_server'>" + t[r] + "</span>", t[r] += "<a href='#id=" + u + "," + v + ",-Tap-" + name_eppart.replace(/ /gi, "_") + "' onclick=\"M.pl('" + l_ep + "')\"> " + name_eppart + " </a> | ");
                else po += "<span class='anc_server'>" + hrf + "</span>: <a href='#id=0,1' onclick=\"M.pl('" + l_ep + "')\"> Xem Full </a>"
            }
            for (e = 0; e < t.length; e++) - 1 != t[e].indexOf("</a>") && ($_(i3).innerHTML += "<span id='anc_" + e + "'>" + t[e] + "</span><br/>");
            $_(i2).innerHTML = ot;
            $_(i3).innerHTML += po
        } else $_(i2).innerHTML = ot
    };
    this.ob = function (c) {
        for (var e = "", A = 8; 17 > A; A++) - 1 != c.indexOf(sv[A]) && (e = o(c)[0]); - 1 != c.indexOf(sv[0]) && (c = c.match(/\b\?[\W\w]*/gi), e = o(c)[1]); - 1 != c.indexOf(sv[1]) && (c = c.replace(/\/nghe\?L\=/gi, "/l/"), e = o(c)[2]); - 1 != c.indexOf(sv[2]) && (c = c.replace(/http:\/\/[\W|\w]*,/gi, "http://clip.vn/w/"), e = o(c)[2]); - 1 != c.indexOf(sv[3]) && (c = c.replace(/\.html/gi, ".xml"), e = o(c)[3]); - 1 != c.indexOf(sv[4]) && (e = o(c)[4]); - 1 != c.indexOf(sv[5]) && (c = c.replace(/\.anc/gi, ".flv"), e = o(c)[4]); - 1 != c.indexOf(sv[6]) && (e = o(c)[5]); - 1 != c.indexOf(sv[7]) && (c = c.replace(/anc\.yl/gi, "http://gdata.youtube.com/feeds/api/playlists"), e = o(c)[0]);
        return e
    }
}
ii = "0,a,b,c,d,e,f,g,h,i,k,l,m,n,o,p,q,r,s".split(",");
ab = "";
po = "";
sv = "google.com,nhaccuatui.com,clip.vn,phimvang.org,.mp4,.anc,banbe.net,anc.yl,youtube.com,videobb.com,novamov.com,vidxden.com,2shared.com,4shared.com,cyworld.vn,dailymotion.com,videozer.com,movshare.net,facebook.com,vimeo.com,mediafire.com".split(",");
t = [];
for (var k = 0; k < sv.length; k++) name_sver = 4 == sv[k].length ? "AnC" : sv[k].match(/[\w\W]*\./), t[k] = "<span title='" + sv[k] + " - Code by Suzuki_aka'>Server " + name_sver + ":</span>";
var o = function (c) {
        _mode = 'allowfullscreen="true" allowscriptaccess="always" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash"';
        _add = 'autostart=true&amp;skin=http://phim3s.net/player/skins/darksunset/darksunset.xml" src="http://phimvang.org/player/player.swf?logo.file=' + lgo + '&amp;logo.hide=false&amp;logo.position=top-left&amp;logo.margin=10"';
        return data = ['<embed flashvars="plugins=http://phimvang.org/player/plugins/proxy.swf&proxy.link=' + c + "&amp;" + _add + " " + _mode + " />", "<embed src=http://video.google.com/googleplayer.swf" + c + "&hl=vi&fs=true " + _mode + "> </embed>", "<embed " + _mode + ' src= "' + c + '" ></embed>', '<embed flashvars="plugins=http://phimvang.org/player/plugins/ListBox.swf,http://phimvang.org/player/plugins/proxy.swf&proxy.list=' + c + '&autostart=true" src="http://phimvang.org/player/player.swf?logo.file=http://phimvang.org/img/logo-trans.png&amp;logo.hide=false&amp;logo.position=top-right&amp;logo.margin=-1010&amp;skin=http://phimvang.org/player/plugins/skin_full.swf" ' + _mode + "/>", '<embed flashvars="file=' + c + "&amp;" + _add + " " + _mode + " />", '<iframe src="' + c + '" ' + _mode + ' frameborder="0" scrolling="no"></iframe>', '<embed src="http://megafun.vn/common/v2/player/player.swf" flashvars="autostart=true&amp;file=' + c + '&amp;streamer=http://ctl.vsolutions.vn/ctl/video/?bts=vs.forum&amp;backcolor=0x000000&amp;frontcolor=0xCCCCCC&amp;lightcolor=0x557722" ' + _mode + "/>", '<iframe src="http://g123.phpnet.us/g.php?' + c + '" width="800" frameborder=0 height="480" scrolling="no"></iframe>', "<embed src=\"http://video.tamtay.vn/flash/player/flowplayer.swf?config={embedded:true,baseURL:'http://video.tamtay.vn/flash/player',configFileName:'" + c + '\'}" allowFullScreen="true" allowNetworking="all" pluginspage="http://www.macromedia.com/go/getflashplayer ' + _mode + '"></embed>', '<embed flashvars="plugins=http://mediavui.com/player/video/plugins/proxy.swf&proxy.link=' + c + "&amp;" + _add + " " + _mode + " />"]
    };